package cn.kgm.map;

import java.util.HashMap;
import java.util.Map;

/**
 * Create by kappi on
 * 2022/3/1/001 20:32
 */
public class MapReSize {
    public static void main(String[] args) {
        Map<String,String> map = new HashMap<>();
        for (Integer i = 0; i < 100; i++) {
            Integer finalI = i;
            Thread thread = new Thread(new Runnable() {
                @Override
                public void run() {
                    map.put("S"+ finalI.toString(),"S");
                    System.out.println(map);
                }
            });
            thread.start();
        }
    }
}
